package edu.ccut.saturn.basecomponent.database;

import java.sql.Connection;
import java.util.List;

import edu.ccut.saturn.component.SaturnComponentException;
import edu.ccut.saturn.component.SaturnData;

/**
 * SaturnSQL处理器
 * @author Tony Yan
 *
 */
public interface ISaturnSQLHandler {
	
	int executeUpdate(ISaturnSQL saturnSQL, Connection connection)  throws SaturnComponentException;

	List<SaturnData> executeQuery(ISaturnSQL saturnSQL, Connection connection) throws SaturnComponentException;
}
